package javaClassDesign.equals.hashcode;

public class Test {

	public static void main(String[] args) {

		Hashcode1 h = new Hashcode1();
		h.int11 = 2;
		Hashcode1 h1 = new Hashcode1();
		h1.int11 = 5;
		System.out.println("Hashcode h: " + h.hashCode());
		System.out.println("Hashcode h1: " + h1.hashCode());

		System.out.println("h1.equals.h2: " + h.equals(h1));

		probarReflexivo();

	}

	private static void probarReflexivo() {
		Reflexivo r1 = new Reflexivo();
		Reflexivo r2 = null;

		System.out.println(r1.equals(r2));

		System.out.println(null == null);

	}

}
